﻿@model IEnumerable<ECGadmin.Common.ViewSubCategoryTempJoinDto>
@foreach (var item in Model)
{
    <tr class="@string.Format("sct-{0}", item.Id) tsc-template-item">
        <td>
            @item.Id
        </td>
        <td>
            @item.CateTempDescription
        </td>
        <td>
            @item.Description
        </td>
        <td>
            @item.DisplayOrder
        </td>
        <td>
            @Ajax.ActionLink("EditSubCateTemp", "EditSubCateTemplate", new { id = item.Id, categoryId = (string)ViewBag.CategoryId }, new AjaxOptions
                        {
                            OnBegin = "ShowLoading",
                            OnComplete = "HideLoading",
                            OnSuccess = "AjaxReturnDataLoadEditSubCateTemplate"
                        }, new { @class = "icon-edit-v2 fl-l bootstrapTangoSmall", title = "chỉnh sửa" })

            @Ajax.ActionLink("Xóa", "DeleteSubCateTemplate", "ProductCategory", new { id = item.Id }, new AjaxOptions
                        {
                            Confirm = "Bạn chắc chắn muốn xóa template con này!",
                            OnSuccess = "AjaxReturnDataDeleteSubCateTemplate"
                        }, new { @class = "icon-delete fl-l bootstrapTangoSmall", title = "xóa" })

        </td>
    </tr>
}